package com.panfeng.xcloud.boss.provider.member.dao.mapper;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface WalletCurrencyMapperExt  {

    Integer findIsRealnameByUserId(String userId);

    BigDecimal findAvailableAssetByUserId(String userId);

    int updateAddAvailableAssetXDCByUserId(@Param("userId") String userId, @Param("amount") BigDecimal amount);

    Integer queryUserWalletCurrencyIdByUserId(String userId);

    int updateAddAvailableAssetXDCById(@Param("id")Integer id,@Param("amount") BigDecimal amount);

    int updateDeleteAvailableAssetXDCById(@Param("id")Integer id,@Param("amount") BigDecimal amount);
}